import request from '@/utils/request'

// 查询个人赛报名列表
export function listIndividualregistration(query) {
  return request({
    url: '/learnmanagement/individualregistration/list',
    method: 'get',
    params: query
  })
}

// 查询个人赛报名详细
export function getIndividualregistration(id) {
  return request({
    url: '/learnmanagement/individualregistration/' + id,
    method: 'get'
  })
}

// 新增个人赛报名
export function addIndividualregistration(data) {
  return request({
    url: '/learnmanagement/individualregistration', 
    method: 'post',
    data: data
  })
}

// 修改个人赛报名
export function updateIndividualregistration(data) {
  return request({
    url: '/learnmanagement/individualregistration',
    method: 'put',
    data: data
  })
}

// 删除个人赛报名
export function delIndividualregistration(id) {
  return request({
    url: '/learnmanagement/individualregistration/' + id,
    method: 'delete'
  })
}

// 根据学生ID查询个人赛报名列表
export function listIndividualregistrationByStudentId(studentId) {
  return request({
    url: '/learnmanagement/individualregistration/listByStudentId/' + studentId,
    method: 'get'
  })
}
